//
// Created by hp on 2020-01-10.
//

#include "Background.h"
Background::Background(vector<string> paths, point point1,int w, int h,int v):Gameobject(paths,"None",point1,w,h,v) {

}
Background::~Background(){};

void Background::move(GLfloat dt) {
    pos.y-=dt*volocity;
}
void Background::Init() {
    if(pos.y<=-(float)Game::Height) {
        pos = {0, (float) Game::Height};
    }
}